package com.cloud.turbine;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.turbine.EnableTurbine;
import org.springframework.context.annotation.Configuration;

/**
 * @EnableTurbine注解 开启Turbine
 * 分别启动eureka-server、eureka-client（3个以上）、eureka-consumer-ribbon-hystrix、
 * turbine以及hystrix-dashboard。
 * 访问Hystrix Dashboard，并开启对http://localhost:8989/turbine.stream 的监控
 */
@Configuration
@EnableAutoConfiguration
@EnableTurbine
@EnableDiscoveryClient
public class TurbineApplication {

	public static void main(String[] args) {
		SpringApplication.run(TurbineApplication.class, args);
	}
}
